import '../page/splash/dnp_splash_entity.dart';
import '../plugin/dnp_plugin/lib/dnp_plugin.dart';

class DnpPluginManager {

  static final DnpPluginManager _instance = DnpPluginManager._();
  factory DnpPluginManager() => _instance;

  DnpPluginManager._();

  DnpPlugin plugin = DnpPlugin();

  showLoading() {
    hideLoading();

    plugin.openHud();
  }

  hideLoading() {
    plugin.closeHud();
  }

  showToast(String message) {
    plugin.showToast(message);
  }

  submitFB(DnpSplashKaiEntity? entity) {
    plugin.submitFB(entity?.ta, entity?.hou, entity?.ex, entity?.panta);
  }

}